
//过滤树模块
.filter {
  //position: relative; // 为了放置闭合按钮
  //overflow-x: inherit;// 为了放置闭合按钮
  box-sizing: border-box;
  width: 300px;
  height: 100%;
  padding: 18px;
  margin-right: 10px;
  .title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: bold;
    color: var(--el-color-info-dark-2);
    letter-spacing: 0.5px;
  }
  .el-input {
    margin: 0 0 15px;
  }
  .el-scrollbar {
    :deep(.el-tree) {
      height: 80%;
      overflow: auto;
      .el-tree-node__content {
        height: 33px;
      }
    }
    :deep(.el-tree--highlight-current) {
      .el-tree-node.is-current > .el-tree-node__content {
        width: 150px;
        background-color: var(--el-color-primary);
        .el-tree-node__label,
        .el-tree-node__expand-icon {
          color: white;
        }
        .is-leaf {
          color: transparent;
        }
      }
    }
  }

}

.filter-container {
  position: relative;
  .collapse-btn {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 10px;
    height: 40px;
    background-color: var(--el-color-primary-light-5);
    display: flex;
    align-items: center;
    justify-content: center;
    &:hover {
      background-color: var(--el-color-primary-light-3);
    }
  }
  .collapse-btn-collapse {
    border-radius: 15px 0 0 15px;
  }

  .collapse-btn-close {
    border-radius: 0 15px 15px 0;
  }

}

//将分类树前面的三角icon变大
.el-tree-node__expand-icon {
  font-size: 20px;
}
//自定义树节点
.custom-tree-node {
  flex: 1 1 auto;
  -webkit-box-flex: 1;
  -webkit-box-align: center;
  display: flex;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  font-size: 14px;
  padding-right: 8px;
  width: 100%;
  //&:hover .node-operate {
  //  display: inherit;
  //}
  &:hover .count_title {
    display: none;
  }
  .node_title {
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
    overflow: hidden;
    flex: 1 1 auto;
    -webkit-box-flex: 1;
    width: 0;
  }
  .node-operate {
    margin: 0 5px;
    color: var(--el-color-primary);
    display: inline;
    .el-icon {
      padding-left: 5px;
      font-size: 14px;
      transform: rotateZ(90deg);
    }
  }
}
